﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace KUMC.Neurology.SomatoTopo
{
    public partial class FormMapFilt : Form
    {
        private string[] m_MapOpt = null;
        private string m_LSide = null;
        private string m_RSide = null;
        private string m_Operator = null;

        public FormMapFilt()
        {
            InitializeComponent();
        }
        public FormMapFilt(string[] map_opt)
            :this()
        {
            m_MapOpt = map_opt;
        }

        private void FRM_MAPFILTER_Load(object sender, EventArgs e)
        {
            foreach (string str in m_MapOpt)
            {
                CBB_LSIDE.Items.Add(str);
            }            
        }

        private void BT_OK_Click(object sender, EventArgs e)
        {
            string[] Equation = TB_EQUATION.Text.Split(' ');
            m_LSide = CBB_LSIDE.SelectedItem.ToString();
            if (!Equation[0].Equals(""))
            {
                m_Operator = Equation[0];
                m_RSide = Equation[1];
            }
            else
            {
                m_Operator = "";
                m_RSide = "0";
            }
        }

        public string LSide { get { return m_LSide; } }
        public string RSide { get { return m_RSide; } }
        public string Equation { get { return m_Operator; } }




    }
}
